package code;

import java.util.Scanner;

public class QuestionNum_03_13 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数字:");
        int enterNum1 = sc.nextInt();
        System.out.println("请输入第二个数字:");
        int enterNum2 = sc.nextInt();
        System.out.println("请输入第三个数字:");
        int enterNum3 = sc.nextInt();

       // int result = enterNum1 > enterNum2 ? enterNum1 : enterNum2;
        int result2 = (enterNum1 > enterNum2 ? enterNum1 : enterNum2) > enterNum3 ? (enterNum1 > enterNum2 ? enterNum1 : enterNum2) :enterNum3;

        System.out.println("三个数中最大的数是:"+result2);
    }
}
